<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户信息修改</title>
    {{ assets_css "/static/css/bootstrap.min.css" }}
    {{ assets_css "/static/css/layout.css" }}
</head>
<body>
<div class="container-fluid">
 <div class="col-4 offset-4">
     <div class="form-group mb-5">
         <h1 class="text-center">用户密码修改</h1>
     </div>
     <form action="{{ urlfor `QueryController.Edit` }}" method="post">
         <div class="form-group row">
              <label class="col-3 col-form-label">旧密码</label>
             <div class="col-9">
                 <input class="form-control" type="password" name="oldpassword"/>
             </div>
         </div>
         <div class="form-group row">
             <label class="col-3 col-form-label" >新密码</label>
             <div class="col-9">
                 <input class="form-control" type="password" name="password" />
             </div>
         </div>
         <div class="form-group">
             <small class="text-black-50 offset-3">密码不能超过四位数字，只能包含@！#等特殊字符</small>
         </div>
         <div class="form-group row">
             <label class="col-3 col-form-label">确认新密码</label>
             <div class="col-9">
                 <input class="form-control" type="password" name="newpassword" />
             </div>
         </div>
         <div class="form-group">
                   {{ if .errors.HasErrors }}
                   {{ range .errors.Errors }}
             <small class=" text-danger  offset-3">
                 {{ index . 0}}
             </small>
                 {{ end }}
                 <br/>
                 {{ end }}
         </div>
         <div class="form-group">
            <div class="text-center">
                <input class="btn btn-primary" type="submit" value="修改"/>
            </div>
         </div>
     </form>
 </div>
</div>
</body>
</html>